import { PORT1 } from "../config/servicePort";
import Http from "@/api/index";

const baseUrl = PORT1 + "/system/shop";

export const getParams = () => {
  return Http.get(baseUrl + "/params/list");
};

export const createParams = (params: any) => {
  return Http.post(baseUrl + "/params/add", params);
};

export const createRoute = (params: any) => {
  return Http.post(baseUrl + "/route/add", params);
};

export const editRoute = (params: any) => {
  return Http.put(baseUrl + "/route/edit", params);
};

export const getRoutes = (params: any) => {
  return Http.get(baseUrl + "/route/list", params);
};

export const deleteRoutes = (params: any) => {
  return Http.post(baseUrl + "/route/delete", params);
};
